package com.team7.order.service.impl;

import com.sun.org.apache.bcel.internal.generic.I2D;
import com.team7.order.entity.Member;
import com.team7.order.dao.MemberDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team7.order.utils.CommonResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author 张煜杰
 * @since 2021-10-22
 */
@Service
public class MemberService extends ServiceImpl<MemberDao, Member> implements com.team7.order.service.MemberService {
    @Resource
    private MemberDao memberDao;
    @Override
    public CommonResult queryAllMemberById(String memberId) {
        Member member = memberDao.queryAllMemberById(memberId);
        return new CommonResult(2000,"查询成功",member);
    }
}
